package com.tvein.sanguo.zone.model
{
	//flash
	import flash.media.Sound;
	import flash.media.SoundChannel;
    import flash.media.SoundTransform;
	//pureMVC
	import org.puremvc.as3.multicore.interfaces.IProxy;
	import org.puremvc.as3.multicore.patterns.proxy.Proxy;
	//custom
//
	public class SystemProxy extends Proxy implements IProxy
	{
		public static const NAME:String = "SystemProxy";
		
		public function SystemProxy()
		{
			super(NAME);
		}
		
		//Custom
		
		//Source Server
		private var _srcServer:String;
		
		//Music Name
		private var _musicName:String;
		//Sound Music Volum
		private var _musicVol:Number;
		//Music Mute
		private var _musicMute:Boolean;
		
		public var music:Sound = new Sound();
		public var channel:SoundChannel = new SoundChannel();
        public var transform:SoundTransform = new SoundTransform();
		
		override public function onRegister() : void
        {
			_musicVol = 30;
        }
		
		public function set musicName(value:String) : void
		{
			_musicName = value;
		}
		
		public function get musicName() : String
		{
			return _musicName;
		}
		
		public function set musicVol(value:Number) : void
		{
			_musicVol = value;
		}
		
		public function get musicVol() : Number
		{
			return _musicVol;
		}
		
		public function set musicMute(value:Boolean) : void
		{
			_musicMute = value;
		}
		
		public function get musicMute() : Boolean
		{
			return _musicMute;
		}
		
		public function set srcServer(value:String) : void
		{
			_srcServer = value;
		}
		
		public function get srcServer() : String
		{
			return _srcServer;
		}
	}
}